package com.newcoin.xgb.dto;

import lombok.Data;
import lombok.NonNull;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class ChangePasswordDto {

    @NotBlank(message = "请输入新密码")
    private String newPwd;

    @NotBlank(message = "用户id不能为空")
    private Long userId;

    @NotBlank(message = "令牌不能为空")
    private String token;

    @NotBlank(message = "请填写验证码")
    private String verCode;

    @NotBlank(message = "请填写手机号")
    @Pattern(regexp = "^[1][3456789][0-9]{9}$" ,message = "手机号格式不正确")
    private String mobile;

    @NonNull
    private Integer type;
}
